
using System;
using System.Runtime.Serialization;

namespace ICIA.ARojas.Silverlight.Entities
{
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]    
    [System.Runtime.Serialization.DataContractAttribute(Name = "Cargo", Namespace = "http://schemas.datacontract.org/2004/07/ICIA.ARojas.AccesoDatos.Entidades")]
	[System.Runtime.Serialization.KnownTypeAttribute(typeof(ICIA.ARojas.Silverlight.Entities.Cargo))]
	public partial class Cargo : object, System.ComponentModel.INotifyPropertyChanged
	{
        #region Private Members
		
       private int IdField;
       private string NombreCargoField;
       private string DescripcionCargoField;
	
		#endregion
		
		#region constructor		
		public Cargo()
		{
		}
		#endregion
		
		#region Public Properties
		

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int Id 
        {
            get 
            {
                return this.IdField;
            }
            set 
            {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string NombreCargo 
        {
            get 
            {
                return this.NombreCargoField;
            }
            set 
            {
                    this.NombreCargoField = value;
                    this.RaisePropertyChanged("NombreCargo");
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string DescripcionCargo 
        {
            get 
            {
                return this.DescripcionCargoField;
            }
            set 
            {
                    this.DescripcionCargoField = value;
                    this.RaisePropertyChanged("DescripcionCargo");
            }
        }
		
		#endregion 	
		
		public override string ToString()
        {
		    //Aqui pueden cambiar el return a por ejemplo la concatenacion de propiedades			
            return NombreCargo;
        }
		
		#region INotifyPropertyChanged
		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
        protected void RaisePropertyChanged(string propertyName)
        {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null))
            {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
		#endregion

	}
}

